package com.bestcem.xm.survey.grpc.client.dto;

import com.bestcem.xm.component.mybatis.base.BaseEntity2;
import com.bestcem.xm.component.mybatis.format.String2JacksonSerializer;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = true)
public class DeliverWechatmpRecordDto extends BaseEntity2 {
    private String id;

    /**
     * 投放记录id
     */
    @JsonProperty("mp_deliver_id")
    private String mpDeliverId;

    /**
     * 用户ID
     */
    @JsonProperty("member_id")
    private String memberId;

    /**
     * 投放id
     */
    @JsonProperty("deliver_id")
    private String deliverId;

    /**
     * 邮件内容
     */
    @JsonSerialize(using = String2JacksonSerializer.class)
    private String content;

    /**
     * appid
     */
    private String appid;

    /**
     * 用户id
     */
    private String openid;

    /**
     * 微信昵称
     */
    private String nickname;

    /**
     * 用户名
     */
    private String username;

    /**
     * 参数
     */
    @JsonSerialize(using = String2JacksonSerializer.class)
    private String params;

    /**
     * 第三方标识
     */
    private String msgid;

    /**
     * 记录描述
     */
    private String msg;

    /**
     * status
     */
    private Integer status;

    /**
     * 答卷状态
     */
    @JsonProperty("rspd_status")
    private Integer rspdStatus;

    /**
     * 推送时间
     */
    @JsonProperty("push_time")
    private LocalDateTime pushTime;
}